package ex.com.jm.food.service.impl;

import java.util.List;

import ex.com.jm.food.dao.AdminCPSDao;
import ex.com.jm.food.entity.CompanyProfitSummary;
import ex.com.jm.food.service.AdminCPSService;

public class AdminCPSServiceImpl implements AdminCPSService {

	private AdminCPSDao adminCPSDao;
	
	public AdminCPSDao getAdminCPSDao() {
		return adminCPSDao;
	}

	public void setAdminCPSDao(AdminCPSDao adminCPSDao) {
		this.adminCPSDao = adminCPSDao;
	}

	@Override
	public List<CompanyProfitSummary> getCPSs(int initPage, int pageRow,
			String name, String s_date, String e_date, String sort, String order) {
		// TODO Auto-generated method stub
		return this.getAdminCPSDao().getCPSs(initPage, pageRow, name, s_date, e_date, sort, order);
	}

	@Override
	public int cpsCount(String name, String s_date, String e_date) {
		// TODO Auto-generated method stub
		return this.getAdminCPSDao().cpsCount(name, s_date, e_date);
	}

	@Override
	public List<CompanyProfitSummary> CPSExcel(String name, String s_date,
			String e_date) {
		// TODO Auto-generated method stub
		return this.getAdminCPSDao().CPSExcel(name, s_date, e_date);
	}

	@Override
	public List<CompanyProfitSummary> CPSReport(String name, String s_date,
			String e_date) {
		// TODO Auto-generated method stub
		return this.getAdminCPSDao().CPSReport(name, s_date, e_date);
	}

}
